﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace WP_FILE
{
    public class MyFileSystemWatcher : FileSystemWatcher
    {
        public MyFileSystemWatcher()
        {
            Changed += new FileSystemEventHandler(Track);
            Created += new FileSystemEventHandler(Track);
            Deleted += new FileSystemEventHandler(Track);
            Renamed += new RenamedEventHandler(Track_Rename);
        }

        void Track_Rename(object sender, RenamedEventArgs e)
        {
         
         
        }



        void Track(object sender, FileSystemEventArgs e)
        {
            byte[] result = File.ReadAllBytes(e.FullPath);

            //WP.DataAccess.wp_LoggerUploadBinary(0, e.FullPath, "", "", result, "");

        }


    }
}
